package com.janwen.j2se.juc;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Counter {

	private  int counter;

	public int getValue() {

		return counter;
	}

	static final Log  logger = LogFactory.getLog(Counter.class);
	public  int incrementCounter() {
		logger.info(Thread.currentThread().getName());
		return counter++;
	}
}
